import { createRouter, createWebHistory } from "vue-router";

export default createRouter({
    history: createWebHistory(),
    routes: [

        {
            path: '/',
            component: () => import("@/views/login")
        },
        {
            path: '/Home',
            component: () => import("@/views/Home/index.vue"),
            children: [
                {
                    path: "Home",
                    component: () => import("@/views/Home/index.vue"),
                },
                {
                    path: '/MapDemo',
                    // title: "地图",
                    component: () => import("@/views/MapDemo.vue"), // 假设地图页面的组件是 MapDemo.vue
                },
                {
                    path: "barnnerin",
                    component: () => import("@/views/banner/bannerin.vue"),
                },
                {
                    path: "barnnerpush",
                    // component: () => import("@/views/banner/barnnerpush.vue"),   //错的离谱 警示一下！！！
                    component: () => import("@/views/banner/bannerpush.vue"),
                },
                {
                    path: "Modifybanner",

                    component: () => import("@/views/banner/Modifybanner.vue"),
                },
                {
                    path: "Product",

                    component: () => import("@/views/commodity/Product.vue"),
                },
                {
                    path: "pagination",

                    component: () => import("@/views/commodity/pagination.vue"),
                },
                {
                    path: "addition",

                    component: () => import("@/views/Operation/addition.vue"),
                },
                {
                    path: "Personnel",

                    component: () => import("@/views/Operation/Personnel.vue"),
                },
                {
                    path: "EditOper",

                    component: () => import("@/views/Operation/EditOper.vue"),
                },
            ]
        },
    ],

})

